package com.gaoxin.api.service.sysservice;

import java.util.logging.Logger;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gaoxin.api.dao.sysdao.QueryStuUserDao;

/**
 * 查询教职工权限接口-业务层
 *
 * @author fanyue
 * @email 859485490@qq.com
 * @date 2018-07-12 15:21
 */
@Service
public class QueryStuUserService {
	Logger log = Logger.getLogger("~~QueryStuUserService~~~~~~~~");
	@Autowired
	private QueryStuUserDao queryStuUserDao;

	/**
	 * 查询教职工权限
	 * 
	 * @param phone
	 * @return List<SysUserLableEntity>
	 * @throws Exception
	 */
	public String queryUserLable(String phone) throws Exception {
		log.info("查询教职工权限开始。。。" + phone);
		String returnStr = "";
		try {
			returnStr = queryStuUserDao.queryUserLable(phone);
			// System.out.println("***********" + returnStr);
			if (returnStr == null) {
				returnStr = "";
			}
		} catch (Exception e) {
			log.warning("查询教职工权限异常。。。");
			e.printStackTrace();
		}
		return returnStr;
	}

}
